package com.zzw.basic.io;

import java.io.FileOutputStream;
import java.io.PrintStream;

public class PrintStreamTest {

	public static void main(String[] args){
		
		try {
			FileOutputStream fos = new FileOutputStream("../ReflectDemo/src/main/resources/test.txt");
			PrintStream ps = new PrintStream(fos);
			ps.println("hello");
			ps.println(new PrintStreamTest());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
